package com.angzh.bolibao.model;


import com.jfinal.plugin.activerecord.Model;

@SuppressWarnings("serial")
public class Commission extends Model<Commission>{
	
	public static final Commission dao = new Commission();
	
	public Commission getCommission(int type,int companyId){
		String sql = "";
		if(type==2){
			sql += " and companyId="+companyId;
		}
		return this.dao.findFirst("select * from commission where type="+type+sql);
	}
}
